/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-06-17 13:48:46
 * @LastEditTime: 2019-09-26 17:50:35
 * @LastEditors: Please set LastEditors
 */
import Vue from 'vue'
import Router from 'vue-router'
import jrouter from './jRouter.js'
import irouter from './iRouter.js'
import hrouter from './hRouter.js'
import grouter from './gRouter.js'
import frouter from './fRouter'
import erouter from './eRouter'
import drouter from './dRouter'
import zrouter from './zRouter'
import yrouter from './yRouter'
import xrouter from './xRouter'
import wrouter from './wRouter'

import krouter from './kRouter'
import lrouter from './lRouter'
import nrouter from './nRouter'
import mrouter from './mRouter'
import orouter from './oRouter'
import prouter from './pRouter'
import qrouter from './qRouter'
import rrouter from './rRouter'
import srouter from './sRouter'
import trouter from './tRouter'
import urouter from './uRouter'
import vrouter from './vRouter'
Vue.use(Router)
let NODE_ENV = process.env.NODE_ENV;
let mode = '';
mode = NODE_ENV == 'production' ? 'history' : 'hash';
//console.log(process.env)

export default new Router({
  linkActiveClass: "active",
  mode: 'hash',
  //base:'/sjp2p/',
  routes: [
    {
      path: '/index',
      name: '主页',
      meta: {
        title: 'Phonics_Level 1.1_Letter Aa',
        // keepAlive:true
      },
      component: resolve => { require(['@/views/Index'], resolve) },
    },
    // {
    //   path: '*',
    //   name: '主页',
    //   meta: {
    //     title: 'Phonics_Level 1.1_Letter Aa',
    //     // keepAlive:true
    //   },
    //   component: resolve => { require(['@/views/Index'], resolve) },
    // },
    {
      path: '/aPage1',
      name: 'page1',
      meta: {
        title: 'Phonics_Level 1.1_Letter Aa',
        // keepAlive:true
      },
      component: resolve => { require(['@/components/Page1'], resolve) },
    },
    {
      path: '/aPage2',
      name: 'page2',
      meta: {
        title: 'Phonics_Level 1.1_Letter Aa',
        // keepAlive:true
      },
      component: resolve => { require(['@/components/Page2'], resolve) },
    },
    {
      path: '/aPage3',
      name: 'page3',
      meta: {
        title: 'Phonics_Level 1.1_Letter Aa',
        // keepAlive:true
      },
      component: resolve => { require(['@/components/Page3'], resolve) },
    },{
      path: '/aPage4',
      name: 'page4',
      meta: {
        title: 'Phonics_Level 1.1_Letter Aa',
        // keepAlive:true
      },
      component: resolve => { require(['@/components/Page4'], resolve) },
    },
    {
      path: '/aPage5',
      name: 'page5',
      meta: {
        title: 'Phonics_Level 1.1_Letter Aa',
        // keepAlive:true
      },
      component: resolve => { require(['@/components/Page5'], resolve) },
    },
    {
      path: '/bPage1',
      name: 'bPage1',
      meta: {
        title: 'Phonics_Level 1.1_Letter Bb',
        // keepAlive:true
      },
      component: resolve => { require(['@/views/pageB/Page1'], resolve) },
    },
    {
      path: '/bPage2',
      name: 'bPage2',
      meta: {
        title: 'Phonics_Level 1.1_Letter Bb',
        // keepAlive:true
      },
      component: resolve => { require(['@/views/pageB/Page2'], resolve) },
    },
    {
      path: '/bPage3',
      name: 'bPage3',
      meta: {
        title: 'Phonics_Level 1.1_Letter Bb',
        // keepAlive:true
      },
      component: resolve => { require(['@/views/pageB/Page3'], resolve) },
    },
    {
      path: '/bPage4',
      name: 'bPage4',
      meta: {
        title: 'Phonics_Level 1.1_Letter Bb',
        // keepAlive:true
      },
      component: resolve => { require(['@/views/pageB/Page4'], resolve) },
    },
    {
      path: '/bPage5',
      name: 'bPage5',
      meta: {
        title: 'Phonics_Level 1.1_Letter Bb',
        // keepAlive:true
      },
      component: resolve => { require(['@/views/pageB/Page5'], resolve) },
    },
    {
      path: '/cPage1',
      name: 'cPage1',
      meta: {
        title: 'Phonics_Level 1.1_Letter Aa',
        // keepAlive:true
      },
      component: resolve => { require(['@/views/pageC/Page1'], resolve) },
    },
    {
      path: '/cPage2',
      name: 'cPage2',
      meta: {
        title: 'Phonics_Level 1.1_Letter Aa',
        // keepAlive:true
      },
      component: resolve => { require(['@/views/pageC/Page2'], resolve) },
    },
    {
      path: '/cPage3',
      name: 'cPage3',
      meta: {
        title: 'Phonics_Level 1.1_Letter Aa',
        // keepAlive:true
      },
      component: resolve => { require(['@/views/pageC/Page3'], resolve) },
    },
    {
      path: '/cPage4',
      name: 'cPage4',
      meta: {
        title: 'Phonics_Level 1.1_Letter Aa',
        // keepAlive:true
      },
      component: resolve => { require(['@/views/pageC/Page4'], resolve) },
    },
    {
      path: '/cPage5',
      name: 'cPage5',
      meta: {
        title: 'Phonics_Level 1.1_Letter Aa',
        // keepAlive:true
      },
      component: resolve => { require(['@/views/pageC/Page5'], resolve) },
    },
    ...jrouter,
    ...prouter,
    ...irouter,
    ...hrouter,
    ...grouter,
    ...frouter,
    ...erouter,
    ...drouter,
    ...zrouter,
    ...yrouter,
    ...xrouter,
    ...wrouter,
    ...krouter,
    ...lrouter,
    ...nrouter,
    ...mrouter,
    ...orouter,
    ...qrouter,
    ...rrouter,
    ...srouter,
    ...trouter,
    ...urouter,
    ...vrouter
  ]
})

